package com.beiding.test.pg;

import com.beiding.sqlbuilder.*;

public class SentenceParameterHandler implements ParameterHandler {

    @Override
    public boolean canHandle(Parameter parameter) {
        return parameter instanceof SentenceParameter;
    }

    @Override
    public String handle(Parameter parameter) {
        SentenceParameter sentenceParameter = (SentenceParameter) parameter;
        return "(" + sentenceParameter.getSentence().getText() + ")";
    }
}
